package com.eclab.hello.exception;

import com.eclab.hello.enums.ResultEnum;

/**
 * 用户异常类
 */
public class UserException extends RuntimeException {

    public UserException() {
    }

    public UserException(String message) {
        super(message);
    }

    public UserException(String message, Throwable cause) {
        super(message, cause);
    }

    public UserException(Throwable cause) {
        super(cause);
    }

    public UserException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
    }

}
